File size: 497 Bytes
b1eb8e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
import git


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')

from deployment_app.conversation import make_conversation
import gradio as gr

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

demo.launch(share=True)