Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
app.py
|
3 |
"""
|
4 |
import os
|
5 |
-
import time
|
6 |
|
7 |
import gradio as gr
|
8 |
from groq import Groq
|
@@ -36,7 +35,7 @@ def autocomplete(text, verbosity="medium"):
|
|
36 |
iface = gr.Interface(
|
37 |
fn=autocomplete,
|
38 |
inputs=gr.Textbox(lines=2,
|
39 |
-
inputs="Moin! π",
|
40 |
label="Input Sentence"),
|
41 |
outputs=gr.Markdown(),
|
42 |
title= "Groq Streaming - so schnell kann ein KI-Chat sein",
|
@@ -46,4 +45,4 @@ iface = gr.Interface(
|
|
46 |
)
|
47 |
|
48 |
# Launch the app
|
49 |
-
iface.launch(share=True)
|
|
|
2 |
app.py
|
3 |
"""
|
4 |
import os
|
|
|
5 |
|
6 |
import gradio as gr
|
7 |
from groq import Groq
|
|
|
35 |
iface = gr.Interface(
|
36 |
fn=autocomplete,
|
37 |
inputs=gr.Textbox(lines=2,
|
38 |
+
inputs=gr.Textarea(placeholder="Moin! π"),
|
39 |
label="Input Sentence"),
|
40 |
outputs=gr.Markdown(),
|
41 |
title= "Groq Streaming - so schnell kann ein KI-Chat sein",
|
|
|
45 |
)
|
46 |
|
47 |
# Launch the app
|
48 |
+
iface.launch(share=True)
|