Spaces:
Runtime error
Runtime error
Update app.py
Browse files2 unmodified lines345678936 unmodified lines46474848495051525317 unmodified lines717273727374757677782 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# Define the chat function and decorate it with @spaces.GPU@spaces.GPUdef chat_function(prompt): # Create the full input prompt including the system instruction full_prompt = f"{system_instruction}\nUser: {prompt}\nAssistant:"17 unmodified lines fn=chat_function, inputs="text", outputs="text", title="Hacker by Data-Ject Solutions", description="A HackingGPT created by Data-Ject Solutions", title="Hacker", description="A HackingGPT",)
# Launch the interfaceapp.py+5-3