Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,17 +105,17 @@ def process_ort(ort):
|
|
105 |
|
106 |
valid_json = qwen(vereine)
|
107 |
# Convert JSON string to Python dictionary
|
108 |
-
data_dict = json.loads(valid_json)
|
109 |
#Convert dictionary to DataFrame
|
110 |
-
df = pd.DataFrame(data_dict)
|
111 |
-
return df
|
112 |
return valid_json
|
113 |
|
114 |
# Create the Gradio interface
|
115 |
with gr.Blocks(css=custom_css) as demo:
|
116 |
with gr.Row():
|
117 |
-
details_output = gr.DataFrame(label="Ausgabe", elem_id="md")
|
118 |
-
|
119 |
with gr.Row():
|
120 |
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
121 |
with gr.Row():
|
|
|
105 |
|
106 |
valid_json = qwen(vereine)
|
107 |
# Convert JSON string to Python dictionary
|
108 |
+
#data_dict = json.loads(valid_json)
|
109 |
#Convert dictionary to DataFrame
|
110 |
+
#df = pd.DataFrame(data_dict)
|
111 |
+
#return df
|
112 |
return valid_json
|
113 |
|
114 |
# Create the Gradio interface
|
115 |
with gr.Blocks(css=custom_css) as demo:
|
116 |
with gr.Row():
|
117 |
+
#details_output = gr.DataFrame(label="Ausgabe", elem_id="md")
|
118 |
+
details_output = gr.Markdown(label="Ausgabe", elem_id="md")
|
119 |
with gr.Row():
|
120 |
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
121 |
with gr.Row():
|