TIMBOVILL commited on
Commit
476f2a1
1 Parent(s): 1acd8d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -76,8 +76,16 @@ additional_inputs = [
76
  def chat_interface():
77
  return gr.Interface(
78
  fn=generate_response,
79
- inputs=["text", "history", "model", "temperature", "max_tokens", "top_p", "seed"],
80
- outputs="text",
 
 
 
 
 
 
 
 
81
  title="YTSHorts Maker - Chat Interface",
82
  description="Powered by GROQ.",
83
  additional_inputs=additional_inputs,
 
76
  def chat_interface():
77
  return gr.Interface(
78
  fn=generate_response,
79
+ inputs=[
80
+ gr.Textbox(label="Prompt"),
81
+ gr.Textbox(label="History", type="text"), # Assuming history is provided as text
82
+ gr.Textbox(label="Model"),
83
+ gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label="Temperature"),
84
+ gr.Slider(minimum=1, maximum=32192, step=1, label="Max Tokens"),
85
+ gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label="Top P"),
86
+ gr.Number(precision=0, label="Seed")
87
+ ],
88
+ outputs=gr.Textbox(label="Response"),
89
  title="YTSHorts Maker - Chat Interface",
90
  description="Powered by GROQ.",
91
  additional_inputs=additional_inputs,