aakash0563 commited on
Commit
71fc09f
1 Parent(s): abb3988

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -97,15 +97,19 @@ iface2 = gr.Interface(
97
  # thread1 = threading.Thread(target=iface1.launch, args=(debug=True, share=True, server_port=7861))
98
  # thread2 = threading.Thread(target=iface2.launch, args=(debug=True, share=True, server_port=7862))
99
 
 
 
 
100
  thread1 = threading.Thread(
101
- target=iface1.launch, args=(debug, share, server_port=7861) # Remove extra `=`
102
  )
103
  thread2 = threading.Thread(
104
- target=iface2.launch, args=(debug, share, server_port=7862) # Remove extra `=`
105
  )
106
 
107
 
108
 
 
109
  thread1.start()
110
  thread2.start()
111
 
 
97
  # thread1 = threading.Thread(target=iface1.launch, args=(debug=True, share=True, server_port=7861))
98
  # thread2 = threading.Thread(target=iface2.launch, args=(debug=True, share=True, server_port=7862))
99
 
100
+ debug = True # Define the variables
101
+ share = True
102
+
103
  thread1 = threading.Thread(
104
+ target=iface1.launch, args=(debug, share, server_port=7861) # Pass the variables
105
  )
106
  thread2 = threading.Thread(
107
+ target=iface2.launch, args=(debug, share, server_port=7862) # Pass the variables
108
  )
109
 
110
 
111
 
112
+
113
  thread1.start()
114
  thread2.start()
115