dlflannery commited on
Commit
e2d70d3
·
verified ·
1 Parent(s): 6f6a85c

Update app.py

Browse files

back to textbox for output window

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -71,8 +71,8 @@ def test_plot_df():
71
  return pd.DataFrame(data)
72
 
73
  def md(txt):
74
- return str(txt).replace('```', ' ').replace(' ', '&nbsp;&nbsp;').replace(' ', '&nbsp;&nbsp;').replace(' ', '&nbsp;&nbsp;').replace('\n','<br>')
75
- # return txt
76
 
77
  def etz_now():
78
  eastern = pytz.timezone('US/Eastern')
@@ -901,7 +901,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
901
  submit_button = gr.Button(value="Submit Prompt/Question")
902
  speak_output = gr.Button(value="Speak Dialog", visible=False)
903
  prompt_window = gr.Textbox(label = "Prompt or Question")
904
- output_window = gr.Markdown(label = "Dialog")
905
  with gr.Row():
906
  with gr.Column():
907
  image_window2 = gr.Image(visible=False, interactive=True, label='Image to Analyze', type='filepath')
 
71
  return pd.DataFrame(data)
72
 
73
  def md(txt):
74
+ # return str(txt).replace('```', ' ').replace(' ', '&nbsp;&nbsp;').replace(' ', '&nbsp;&nbsp;').replace(' ', '&nbsp;&nbsp;').replace('\n','<br>')
75
+ return txt
76
 
77
  def etz_now():
78
  eastern = pytz.timezone('US/Eastern')
 
901
  submit_button = gr.Button(value="Submit Prompt/Question")
902
  speak_output = gr.Button(value="Speak Dialog", visible=False)
903
  prompt_window = gr.Textbox(label = "Prompt or Question")
904
+ output_window = gr.Textbox(label = "Dialog")
905
  with gr.Row():
906
  with gr.Column():
907
  image_window2 = gr.Image(visible=False, interactive=True, label='Image to Analyze', type='filepath')