Spaces:
Runtime error
Runtime error
create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
dictionary = {
|
| 4 |
+
'A palyful man': "- A young man in his mid-20s to early 30s, Has a playful and energetic demeanor, with a big smile always on his face, Has a lean and athletic build, Has messy, yet stylish hair that is always styled in a way that makes it look like he just got out of bed, Has a playful twinkle in his eye, and a hint of mischief in his expression, Wears casual, comfortable clothing that is both stylish and practical,Often seen with a bag or backpack, as if he's always ready for an adventure"
|
| 5 |
+
}
|
| 6 |
+
def chatgpt(text):
|
| 7 |
+
return dictionary[text]
|
| 8 |
+
|
| 9 |
+
iface = gr.Interface(fn=chatgpt, inputs="text", outputs="text")
|
| 10 |
+
iface.launch()
|