修复gradio的依赖安装问题
This commit is contained in:
		
							parent
							
								
									3cfbdce9f2
								
							
						
					
					
						commit
						d6be947177
					
				
							
								
								
									
										3
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.py
									
									
									
									
									
								
							@ -2,8 +2,7 @@ import os; os.environ['no_proxy'] = '*' # 避免代理网络产生意外污染
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
    import gradio as gr
 | 
			
		||||
    # assert gr.__version__.startswith("3.32.1") or gr.__version__.startswith("3.28.3"), \
 | 
			
		||||
    #     "Please run `pip uninstall gradio` and `pip install -r requirements.txt --upgrade` to install a stable gradio fork."
 | 
			
		||||
    if gr.__version__ not in ['3.28.3','3.32.2']: assert False, "请用 pip install -r requirements.txt 安装依赖"
 | 
			
		||||
    from request_llm.bridge_all import predict
 | 
			
		||||
    from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, DummyWith
 | 
			
		||||
    # 建议您复制一个config_private.py放自己的秘密, 如API和代理网址, 避免不小心传github被别人看到
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
gradio-version-freeze>=3.32.1.3.40
 | 
			
		||||
git+https://github.com/binary-husky/gradio-fix.git
 | 
			
		||||
tiktoken>=0.3.3
 | 
			
		||||
requests[socks]
 | 
			
		||||
transformers
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user