Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,8 +76,16 @@ additional_inputs = [
|
|
76 |
def chat_interface():
|
77 |
return gr.Interface(
|
78 |
fn=generate_response,
|
79 |
-
inputs=[
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,
|