Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,8 @@ def generate_response(prompt_template, **kwargs):
|
|
19 |
top_p=0.8
|
20 |
)
|
21 |
response_content = response.choices[0].message["content"]
|
22 |
-
|
|
|
23 |
|
24 |
# Gradio app interface
|
25 |
with gr.Blocks() as app:
|
|
|
19 |
top_p=0.8
|
20 |
)
|
21 |
response_content = response.choices[0].message["content"]
|
22 |
+
formatted_response = response_content.replace("[", "$$").replace("]", "$$")
|
23 |
+
return gr.update(value=f"{formatted_response}")
|
24 |
|
25 |
# Gradio app interface
|
26 |
with gr.Blocks() as app:
|