Spaces:
Runtime error
Runtime error
measmonysuon
commited on
Commit
•
1d2163e
1
Parent(s):
985ebd8
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,6 @@ DEFAULT_STYLE = "3840 x 2160"
|
|
25 |
logging.basicConfig(level=logging.INFO)
|
26 |
logger = logging.getLogger(__name__)
|
27 |
|
28 |
-
url = 'https://measmonysuon-imagen.hf.space/?user_chat_id=00000000'
|
29 |
-
|
30 |
def generate_image(prompt, resolution_key, style=DEFAULT_STYLE):
|
31 |
resolution = resolutions.get(resolution_key, (1024, 1024))
|
32 |
width, height = resolution
|
@@ -136,16 +134,17 @@ def create_gradio_interface():
|
|
136 |
with gr.Blocks() as interface:
|
137 |
# Personalized HTML content
|
138 |
gr.HTML("""
|
|
|
139 |
<h3>Welcome! Please enter your user chat ID to continue.</h3>
|
140 |
""")
|
141 |
|
142 |
# Create input components
|
143 |
user_chat_id_input = gr.Textbox(
|
144 |
label="Your UID",
|
145 |
-
placeholder="
|
146 |
-
interactive=False # Make this non-editable
|
147 |
)
|
148 |
-
points_output = gr.Textbox(label="Your Balances", placeholder="
|
149 |
|
150 |
# Create the button to get user points
|
151 |
get_points_button = gr.Button("Show Your Points")
|
|
|
25 |
logging.basicConfig(level=logging.INFO)
|
26 |
logger = logging.getLogger(__name__)
|
27 |
|
|
|
|
|
28 |
def generate_image(prompt, resolution_key, style=DEFAULT_STYLE):
|
29 |
resolution = resolutions.get(resolution_key, (1024, 1024))
|
30 |
width, height = resolution
|
|
|
134 |
with gr.Blocks() as interface:
|
135 |
# Personalized HTML content
|
136 |
gr.HTML("""
|
137 |
+
<h1> ImageGen DALL v3</h1>
|
138 |
<h3>Welcome! Please enter your user chat ID to continue.</h3>
|
139 |
""")
|
140 |
|
141 |
# Create input components
|
142 |
user_chat_id_input = gr.Textbox(
|
143 |
label="Your UID",
|
144 |
+
placeholder="Your UID",
|
145 |
+
# interactive=False # Make this non-editable
|
146 |
)
|
147 |
+
points_output = gr.Textbox(label="Your Balances", placeholder="Your Points")
|
148 |
|
149 |
# Create the button to get user points
|
150 |
get_points_button = gr.Button("Show Your Points")
|