Spaces:
Sleeping
Sleeping
changed UI
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
|
|
3 |
import qrcode
|
4 |
import random
|
5 |
|
6 |
-
def texttoqr(
|
7 |
-
qr_img = qrcode.make(
|
8 |
count = random.randint(1, 99999999999999999999999999999999999999)
|
9 |
if (count > 0):
|
10 |
name = 'qrfile/'+"qr-img"+ str(count) +".jpg"
|
@@ -12,5 +12,5 @@ def texttoqr(text):
|
|
12 |
return name
|
13 |
|
14 |
|
15 |
-
demo = gr.Interface(texttoqr, gr.Textbox(), "image")
|
16 |
demo.launch()
|
|
|
3 |
import qrcode
|
4 |
import random
|
5 |
|
6 |
+
def texttoqr(Input):
|
7 |
+
qr_img = qrcode.make(Input)
|
8 |
count = random.randint(1, 99999999999999999999999999999999999999)
|
9 |
if (count > 0):
|
10 |
name = 'qrfile/'+"qr-img"+ str(count) +".jpg"
|
|
|
12 |
return name
|
13 |
|
14 |
|
15 |
+
demo = gr.Interface(texttoqr, gr.Textbox(lines=1, placeholder="Enter Your Text Here..."), "image")
|
16 |
demo.launch()
|