Spaces:
Sleeping
Sleeping
add text box
Browse files- app.py +1 -3
- requirements.txt +0 -1
app.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from spiralfilm import FilmCore, FilmConfig
|
| 3 |
-
import anyio
|
| 4 |
-
import asyncio
|
| 5 |
|
| 6 |
|
| 7 |
def greet(name):
|
|
@@ -36,7 +34,7 @@ async def chat(text):
|
|
| 36 |
return await summarize(text)
|
| 37 |
|
| 38 |
|
| 39 |
-
iface = gr.Interface(fn=chat, inputs="text", outputs="text")
|
| 40 |
|
| 41 |
|
| 42 |
if __name__ == "__main__":
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from spiralfilm import FilmCore, FilmConfig
|
|
|
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
def greet(name):
|
|
|
|
| 34 |
return await summarize(text)
|
| 35 |
|
| 36 |
|
| 37 |
+
iface = gr.Interface(fn=chat, inputs=["text", "textbox"], outputs="text")
|
| 38 |
|
| 39 |
|
| 40 |
if __name__ == "__main__":
|
requirements.txt
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
SpiralFilm==0.2.5
|
| 2 |
-
anyio==4.3.0
|
| 3 |
|
|
|
|
| 1 |
SpiralFilm==0.2.5
|
|
|
|
| 2 |
|