Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import time
|
|
6 |
import traceback
|
7 |
|
8 |
# Create a Client instance to communicate with the Hugging Face space
|
9 |
-
client = Client("hsuwill000/LCM_SoteMix_OpenVINO_CPU_Space_TAESD")
|
10 |
|
11 |
# Counter for image filenames to avoid overwriting
|
12 |
count = 0
|
@@ -54,11 +54,16 @@ with gr.Blocks() as demo:
|
|
54 |
prompt_input = gr.Textbox(
|
55 |
placeholder="Type your prompt for image generation here",
|
56 |
lines=1, # Set the input to be only one line tall
|
57 |
-
interactive=True # Allow user to interact with the textbox
|
|
|
|
|
|
|
58 |
)
|
59 |
|
60 |
# Change the button text to "RUN:" and align it with the prompt input
|
61 |
-
run_button = gr.Button("RUN")
|
|
|
|
|
62 |
|
63 |
# Output image display area
|
64 |
output_image = gr.Image(label="Generated Image")
|
|
|
6 |
import traceback
|
7 |
|
8 |
# Create a Client instance to communicate with the Hugging Face space
|
9 |
+
client = Client("https://huggingface.co/spaces/hsuwill000/LCM_SoteMix_OpenVINO_CPU_Space_TAESD")
|
10 |
|
11 |
# Counter for image filenames to avoid overwriting
|
12 |
count = 0
|
|
|
54 |
prompt_input = gr.Textbox(
|
55 |
placeholder="Type your prompt for image generation here",
|
56 |
lines=1, # Set the input to be only one line tall
|
57 |
+
interactive=True, # Allow user to interact with the textbox
|
58 |
+
elem_id="prompt-input" # Optional: For CSS styling
|
59 |
+
).style(
|
60 |
+
width="80%" # Set the prompt input width to 4/5
|
61 |
)
|
62 |
|
63 |
# Change the button text to "RUN:" and align it with the prompt input
|
64 |
+
run_button = gr.Button("RUN:").style(
|
65 |
+
width="20%" # Set the button width to 1/5
|
66 |
+
)
|
67 |
|
68 |
# Output image display area
|
69 |
output_image = gr.Image(label="Generated Image")
|