HenzHosting commited on
Commit
6da4507
·
verified ·
1 Parent(s): 8dced50

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +14 -0
  2. package.json +15 -0
  3. requirements.txt +0 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import subprocess
2
+ import gradio as gr
3
+
4
+ # Start the Node.js server in the background
5
+ subprocess.Popen(["node", "server.js"])
6
+
7
+ # Define your Gradio interface logic
8
+ def chat_with_bot(user_message):
9
+ # This is just a placeholder; replace with actual bot response logic
10
+ return "Bot response to: " + user_message
11
+
12
+ # Create a simple Gradio interface
13
+ iface = gr.Interface(fn=chat_with_bot, inputs="text", outputs="text")
14
+ iface.launch()
package.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "web-deployment-app",
3
+ "version": "1.0.0",
4
+ "description": "Web application for deploying and managing projects",
5
+ "main": "server.js",
6
+ "scripts": {
7
+ "start": "node server.js"
8
+ },
9
+ "dependencies": {
10
+ "express": "^4.17.1",
11
+ "node-fetch": "^2.6.4",
12
+ "socket.io": "^4.3.1"
13
+ }
14
+ }
15
+
requirements.txt ADDED
File without changes