Spaces:
Running
Running
itacaiunas
commited on
Commit
•
3fd4f91
1
Parent(s):
5764cab
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
import requests
|
3 |
from PIL import Image
|
4 |
import io
|
|
|
5 |
|
6 |
API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney-v4"
|
7 |
headers = {"Authorization": "Bearer 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"}
|
@@ -21,7 +22,7 @@ def generate_image(text_input, seed):
|
|
21 |
|
22 |
inputs = [
|
23 |
gr.inputs.Textbox(label="Texto"),
|
24 |
-
|
25 |
[
|
26 |
gr.inputs.Slider(
|
27 |
label="Semente",
|
@@ -51,4 +52,4 @@ interface = gr.Interface(
|
|
51 |
description="Digite o texto para gerar três imagens distintas."
|
52 |
)
|
53 |
|
54 |
-
interface.launch()
|
|
|
2 |
import requests
|
3 |
from PIL import Image
|
4 |
import io
|
5 |
+
from gradio.inputs_panel import InputGroup
|
6 |
|
7 |
API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney-v4"
|
8 |
headers = {"Authorization": "Bearer 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"}
|
|
|
22 |
|
23 |
inputs = [
|
24 |
gr.inputs.Textbox(label="Texto"),
|
25 |
+
InputGroup(
|
26 |
[
|
27 |
gr.inputs.Slider(
|
28 |
label="Semente",
|
|
|
52 |
description="Digite o texto para gerar três imagens distintas."
|
53 |
)
|
54 |
|
55 |
+
interface.launch()
|