yasserrmd commited on
Commit
5b91eaf
·
verified ·
1 Parent(s): 2554d32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return gr.update(value=f"${response_content}$")
 
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: