abhi1280 commited on
Commit
56e44ab
1 Parent(s): 218cc4c

Add application file

Browse files
flagged/log.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ text,output,flag,username,timestamp
2
+ herllo text,C:\Users\Abhishek\Desktop\Project\hugging faces\QR_generator\flagged\output\tmpclyy3bni.jpg,,,2023-06-01 16:09:42.488796
flagged/output/tmpclyy3bni.jpg ADDED
qrfile/qr-img33051550474682696928184207295039348803.jpg ADDED
qrfile/qr-img82761215679738731367500197256723444796.jpg ADDED
text_to_qr.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import gradio as gr
3
+ import qrcode
4
+ import random
5
+
6
+ def texttoqr(text):
7
+ qr_img = qrcode.make(text)
8
+ count = random.randint(1, 99999999999999999999999999999999999999)
9
+ if (count > 0):
10
+ name = 'qrfile/'+"qr-img"+ str(count) +".jpg"
11
+ qr_img.save(name)
12
+ return name
13
+
14
+
15
+ demo = gr.Interface(texttoqr, gr.Textbox(), "image")
16
+ demo.launch(share=True)