Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
|
|
|
|
|
|
| 4 |
def reaction(text, theme):
|
| 5 |
modelName= 'HuggingFaceH4/zephyr-7b-beta'
|
| 6 |
thiscontent=f'Give only one {theme} response to this statement: {text}?'
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
+
themes=["Pick a Genre", "thriller", "fantasy", "romance", "sci-fi", "mystery", "fiction"]
|
| 5 |
+
|
| 6 |
def reaction(text, theme):
|
| 7 |
modelName= 'HuggingFaceH4/zephyr-7b-beta'
|
| 8 |
thiscontent=f'Give only one {theme} response to this statement: {text}?'
|