bstraehle commited on
Commit
0540b69
·
1 Parent(s): c62117c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -76,14 +76,11 @@ def invoke(openai_api_key, prompt, agent_option):
76
  gr.close_all()
77
 
78
  demo = gr.Interface(fn = invoke,
79
- inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1, value = "sk-"),
80
- gr.Textbox(label = "Prompt", lines = 1, value = "What is today's date?"),
81
- gr.Radio([AGENT_OFF, AGENT_ON], label = "Use Agent", value = AGENT_OFF)],
82
  outputs = [gr.Textbox(label = "Completion", lines = 1)],
83
  title = "Real-Time Reasoning Application",
84
- description = os.environ["DESCRIPTION"],
85
- examples = [["sk-", "What is today's date?", AGENT_ON],
86
- ["sk-", "What is the weather in Irvine, California, in imperial system? Suggest activities.", AGENT_ON]],
87
- cache_examples = False)
88
 
89
  demo.launch()
 
76
  gr.close_all()
77
 
78
  demo = gr.Interface(fn = invoke,
79
+ inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
80
+ gr.Textbox(label = "Prompt", lines = 1, value = "What is the weather in Irvine, California, in imperial system? Suggest activities."),
81
+ gr.Radio([AGENT_OFF, AGENT_ON], label = "Use Agent", value = AGENT_ON)],
82
  outputs = [gr.Textbox(label = "Completion", lines = 1)],
83
  title = "Real-Time Reasoning Application",
84
+ description = os.environ["DESCRIPTION"])
 
 
 
85
 
86
  demo.launch()