Spaces:
Runtime error
Runtime error
Commit
·
5d66590
1
Parent(s):
7967be5
Adding image search
Browse files- app.py +11 -0
- requirements.txt +0 -0
app.py
CHANGED
@@ -1,7 +1,18 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
return "Hello there " + name + "!!"
|
5 |
|
6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
#Example from https://huggingface.co/spaces/merve/BigGAN-ImageNET
|
3 |
+
description = "Text to image demo 🦀"
|
4 |
+
title = "BigGAN ImageNet"
|
5 |
|
6 |
def greet(name):
|
7 |
return "Hello there " + name + "!!"
|
8 |
|
9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
iface.launch()
|
11 |
+
|
12 |
+
|
13 |
+
interface = gr.Interface.load("huggingface/osanseviero/BigGAN-deep-128",
|
14 |
+
description=description,
|
15 |
+
title = title,
|
16 |
+
examples=[["american robin"]]
|
17 |
+
)
|
18 |
+
interface.launch()
|
requirements.txt
ADDED
File without changes
|