retromarz commited on
Commit
8f189bc
·
verified ·
1 Parent(s): 1dc2fc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -1,8 +1,11 @@
1
- import gradio as gr
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)