Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	| 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) |