File size: 565 Bytes
b1eb8e0
 
8729297
 
7b5e0ec
b1eb8e0
 
 
 
 
 
 
 
 
 
 
82a22aa
7b5e0ec
b1eb8e0
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
import git
import sys




username = os.environ['GIT_USERNAME']
token = os.environ['GIT_TOKEN']
repo_url = os.environ['GIT_URL']

# Construct the repository URL with the token
repo_url_with_token = f'https://{username}:{token}@{repo_url.split("://")[1]}'

# Clone the repository
repo = git.Repo.clone_from(repo_url_with_token, 'deployment_app')
print("REPO CLONED")
sys.path.append("deployment_app")

from deployment_app.conversation import make_conversation
import gradio as gr

demo = gr.ChatInterface(make_conversation).queue()

demo.launch(share=True)