Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
def greet(name):
|
4 |
-
return "Hello " + name + "!!"
|
5 |
-
|
6 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
-
demo.launch()
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from gradio_client import Client
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
client = Client("fancyfeast/joy-caption-beta-one")
|
4 |
+
result = client.predict(
|
5 |
+
caption_type="Descriptive",
|
6 |
+
caption_length="long",
|
7 |
+
extra_options=[],
|
8 |
+
name_input="Hello!!",
|
9 |
+
api_name="/build_prompt_1"
|
10 |
+
)
|
11 |
+
print(result)
|