Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
abidlabs
/
test-chat-share
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
4ba7980
test-chat-share
/
app.py
abidlabs
HF Staff
Create app.py
6f7a32a
almost 2 years ago
raw
Copy download link
history
blame
Safe
241 Bytes
import
gradio
as
gr
def
generate
(
x
):
return
[
(
f"abc "
,
"def"
),
(
"ghi"
,
"jkl"
)]
with
gr.Blocks()
as
demo:
i = gr.Image(
type
=
"filepath"
)
c = gr.Chatbot()
i.change(generate, i, c)
demo.launch()