Files
ds-fire-fighter/test.py
T

29 lines
693 B
Python
Raw Normal View History

2025-02-06 21:01:22 +00:00
import os
import requests
2025-02-06 20:22:43 +00:00
import json
from typing import List
2025-02-06 21:01:22 +00:00
from dotenv import load_dotenv
load_dotenv()
2025-02-06 20:22:43 +00:00
from src.llm import ai_chat
#conversation_id = "12345" # Replace with the actual conversation ID
query = "Hello let us continue"
theme_id = 1
resume = "Emergency Response Specialist"
conversation_id = 1
response = ai_chat(query, conversation_id, theme_id, resume)
print(response)
"""
with open(file_path, 'rb') as file:
files = {'file': file}
response = requests.post(upload_url, files=files)
response.raise_for_status() # Ensure we raise an error for bad responses
response_data = response.json() # Get the response in JSON format
print(response_data)
"""