alptangall commited on
Commit
0f4feb8
1 Parent(s): 6bd8343

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from selenium import webdriver
2
+ from selenium.webdriver.chrome.options import Options
3
+ from selenium.webdriver.common.by import By
4
+ from selenium.common.exceptions import NoSuchElementException
5
+ from selenium.webdriver.common.action_chains import ActionChains
6
+ from selenium.webdriver.support.ui import WebDriverWait
7
+ from selenium.webdriver.support import expected_conditions as EC
8
+ from selenium.webdriver.common.keys import Keys
9
+ import time,os,sys
10
+ import pickle
11
+ from random import randrange
12
+ import subprocess
13
+ from datetime import datetime,timedelta
14
+ import requests
15
+ import server
16
+ import gradio as gr
17
+
18
+ def greet(name):
19
+ return "Hello " + name + "!!"
20
+ if __name__ == "__main__":
21
+ result = subprocess.run(["python", 'main.py'], capture_output=True, text=True)
22
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
23
+ demo.launch(server_name="0.0.0.0", server_port=7860)
24
+ print('starting')
25
+