Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,6 @@ import random
|
|
3 |
import gradio as gr
|
4 |
from groq import Groq
|
5 |
|
6 |
-
|
7 |
-
import loadThemes
|
8 |
-
|
9 |
-
|
10 |
client = Groq(
|
11 |
api_key = os.environ.get("Groq_Api_Key")
|
12 |
)
|
@@ -54,12 +50,7 @@ additional_inputs = [
|
|
54 |
gr.Number(precision=0, value=42, label="Seed", info="A starting point to initiate generation, use 0 for random")
|
55 |
]
|
56 |
|
57 |
-
|
58 |
-
theme_applio = loadThemes.load_json()
|
59 |
-
|
60 |
-
|
61 |
gr.ChatInterface(
|
62 |
-
theme=theme_applio,
|
63 |
fn=generate_response,
|
64 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
65 |
additional_inputs=additional_inputs,
|
|
|
3 |
import gradio as gr
|
4 |
from groq import Groq
|
5 |
|
|
|
|
|
|
|
|
|
6 |
client = Groq(
|
7 |
api_key = os.environ.get("Groq_Api_Key")
|
8 |
)
|
|
|
50 |
gr.Number(precision=0, value=42, label="Seed", info="A starting point to initiate generation, use 0 for random")
|
51 |
]
|
52 |
|
|
|
|
|
|
|
|
|
53 |
gr.ChatInterface(
|
|
|
54 |
fn=generate_response,
|
55 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
56 |
additional_inputs=additional_inputs,
|