Spaces:
Build error
Build error
Commit
·
e58b4b3
1
Parent(s):
933b20e
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ tokenizer.model_max_length = 1024
|
|
36 |
#Dynamic Temperature
|
37 |
#See experiment https://www.linkedin.com/pulse/ai-goes-job-interview-g%25C3%25B6rkem-g%25C3%25B6knar
|
38 |
|
39 |
-
base_temperature = 1.
|
40 |
dynamic_temperature_range = 0.15
|
41 |
|
42 |
rand_range = random.uniform(-1 * dynamic_temperature_range , dynamic_temperature_range )
|
@@ -171,7 +171,11 @@ examples=[['Gandalf','Hello','dragon.wav']]
|
|
171 |
|
172 |
history = {"character": "None", "message_history" : [] }
|
173 |
interface= gr.Interface(fn=greet,
|
174 |
-
inputs=[gr.inputs.Dropdown(personality_choices),
|
|
|
|
|
|
|
|
|
175 |
outputs=[gr.outputs.Audio(type="file"),"html","state"],
|
176 |
css=css, title=title, description=description,article=article )
|
177 |
|
|
|
36 |
#Dynamic Temperature
|
37 |
#See experiment https://www.linkedin.com/pulse/ai-goes-job-interview-g%25C3%25B6rkem-g%25C3%25B6knar
|
38 |
|
39 |
+
base_temperature = 1.2
|
40 |
dynamic_temperature_range = 0.15
|
41 |
|
42 |
rand_range = random.uniform(-1 * dynamic_temperature_range , dynamic_temperature_range )
|
|
|
171 |
|
172 |
history = {"character": "None", "message_history" : [] }
|
173 |
interface= gr.Interface(fn=greet,
|
174 |
+
inputs=[gr.inputs.Dropdown(personality_choices),
|
175 |
+
gr.inputs.Audio(source="microphone", type="filepath") ,
|
176 |
+
gr.inputs.Audio(type="filepath"),
|
177 |
+
"text",
|
178 |
+
"state"],
|
179 |
outputs=[gr.outputs.Audio(type="file"),"html","state"],
|
180 |
css=css, title=title, description=description,article=article )
|
181 |
|