Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -147,10 +147,10 @@ with gr.Blocks() as demo:
|
|
147 |
system="you are a expert for json data and your job is to extract information from text and return a valid json object only. no text no explanations",
|
148 |
api_name="/model_chat"
|
149 |
)
|
150 |
-
|
151 |
-
dict_data = json.loads(result[1])
|
152 |
-
|
153 |
-
return dict_data
|
154 |
|
155 |
with gr.Row():
|
156 |
clearbutton = gr.Button("Clear")
|
|
|
147 |
system="you are a expert for json data and your job is to extract information from text and return a valid json object only. no text no explanations",
|
148 |
api_name="/model_chat"
|
149 |
)
|
150 |
+
result[1]=gr.Markdown()
|
151 |
+
#dict_data = json.loads(result[1])
|
152 |
+
return result
|
153 |
+
#return dict_data
|
154 |
|
155 |
with gr.Row():
|
156 |
clearbutton = gr.Button("Clear")
|