Spaces:
Running
Running
Commit
·
c1ad2a1
1
Parent(s):
b0490f8
bug fixing
Browse files
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
import gradio as gr
|
|
|
|
|
|
|
| 3 |
import re
|
| 4 |
import pandas as pd
|
| 5 |
from io import StringIO
|
|
@@ -935,7 +937,12 @@ def process_input(
|
|
| 935 |
except Exception as e:
|
| 936 |
return f"Error processing file: {str(e)}", None, None, []
|
| 937 |
|
| 938 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 939 |
|
| 940 |
iface = gr.Interface(
|
| 941 |
fn=process_input,
|
|
|
|
| 1 |
import os
|
| 2 |
import gradio as gr
|
| 3 |
+
import gradio.blocks
|
| 4 |
+
gradio.blocks.Blocks.get_api_info = lambda self: {}
|
| 5 |
import re
|
| 6 |
import pandas as pd
|
| 7 |
from io import StringIO
|
|
|
|
| 937 |
except Exception as e:
|
| 938 |
return f"Error processing file: {str(e)}", None, None, []
|
| 939 |
|
| 940 |
+
return (
|
| 941 |
+
output_text or "No analysis done.",
|
| 942 |
+
img_cyclic if 'img_cyclic' in locals() else None,
|
| 943 |
+
img_linear if 'img_linear' in locals() else None,
|
| 944 |
+
structure_files if structure_files else []
|
| 945 |
+
)
|
| 946 |
|
| 947 |
iface = gr.Interface(
|
| 948 |
fn=process_input,
|