nikunjcepatel commited on
Commit
a3e401d
·
verified ·
1 Parent(s): e2cb2fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -67,11 +67,12 @@ iface = gr.Interface(
67
  inputs=[
68
  gr.Textbox(lines=2, label="Input Text", placeholder="Enter your query here"),
69
  gr.Dropdown(choices=MODEL_OPTIONS, label="Select Model", value=MODEL_OPTIONS[0]),
70
- gr.State() # This is where we maintain the history state
71
  ],
72
  outputs=[
73
  gr.Textbox(label="Response", placeholder="Response will be shown here"),
74
- gr.Textbox(label="History", placeholder="Interaction history will be shown here", lines=10, interactive=False)
 
75
  ],
76
  title="Chat with OpenRouter Models"
77
  )
 
67
  inputs=[
68
  gr.Textbox(lines=2, label="Input Text", placeholder="Enter your query here"),
69
  gr.Dropdown(choices=MODEL_OPTIONS, label="Select Model", value=MODEL_OPTIONS[0]),
70
+ gr.State() # This is where we maintain the history state (input)
71
  ],
72
  outputs=[
73
  gr.Textbox(label="Response", placeholder="Response will be shown here"),
74
+ gr.Textbox(label="History", placeholder="Interaction history will be shown here", lines=10, interactive=False),
75
+ gr.State() # History needs to be output as well
76
  ],
77
  title="Chat with OpenRouter Models"
78
  )