Tonic commited on
Commit
8ed3737
Β·
1 Parent(s): 3b25f2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -87,14 +87,12 @@ def ask_openai(question):
87
 
88
  except Exception as e:
89
  return f"An error occurred: {str(e)}"
90
-
91
  iface = gr.Interface(
92
  fn=ask_openai,
93
- gr.Markdown(title),
94
- gr.Markdown(description),
95
- inputs=gr.Textbox(lines=5, placeholder="Hi there, I have a plant that's..."),
96
  outputs=gr.Markdown(),
97
  examples=examples
98
- )
99
-
100
- iface.launch()
 
87
 
88
  except Exception as e:
89
  return f"An error occurred: {str(e)}"
90
+
91
  iface = gr.Interface(
92
  fn=ask_openai,
93
+ title=gr.Markdown(title),
94
+ description=gr.Markdown(description),
95
+ inputs=gr.Textbox(lines=5, placeholder="Hi there, I have a plant that's..."),
96
  outputs=gr.Markdown(),
97
  examples=examples
98
+ )