Dooratre commited on
Commit
be2cac6
·
verified ·
1 Parent(s): 07222db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -5
app.py CHANGED
@@ -1,7 +1,16 @@
1
- import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
 
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
1
+ import requests
2
 
3
+ url = "http://weweirpfjeojor.rf.gd/index.php"
4
+ payload = {
5
+ "id": "4",
6
+ "firstname": "Hulo",
7
+ "lastname": "Nuawara",
8
+ "token": "23eere32r43r543543t"
9
+ }
10
 
11
+ response = requests.post(url, data=payload)
12
+
13
+ if response.status_code == 200:
14
+ print("Data added successfully!")
15
+ else:
16
+ print("Failed to add data. Status code:", response.status_code)