Spaces:
Runtime error
Runtime error
Update app.py
Browse files2 unmodified lines34567836 unmodified lines4546474849505117 unmodified lines69707172737475762 unmodified linesimport torchimport osfrom dotenv import load_dotenv# Load environment variables from .env fileload_dotenv()36 unmodified lines"The scripts must be functional in a real-world scenario.")# Define the chat functiondef chat_function(prompt):# Create the full input prompt including the system instructionfull_prompt = f"{system_instruction}\nUser: {prompt}\nAssistant:"17 unmodified linesfn=chat_function,inputs="text",outputs="text",title="Hacker by Data-Ject Solutions",description="A HackingGPT created by Data-Ject Solutions",)# Launch the interface2 unmodified lines345678936 unmodified lines464748495051525317 unmodified lines71727374757677782 unmodified linesimport torchimport osfrom dotenv import load_dotenvimport spaces # Import the spaces module# Load environment variables from .env fileload_dotenv()36 unmodified lines"The scripts must be functional in a real-world scenario.")# Define the chat function and decorate it with @spaces.GPU@spaces.GPUdef chat_function(prompt):# Create the full input prompt including the system instructionfull_prompt = f"{system_instruction}\nUser: {prompt}\nAssistant:"17 unmodified linesfn=chat_function,inputs="text",outputs="text",title="Hacker",description="A HackingGPT",)# Launch the interface
app.py+5-3