QSARion-smolagents / README.md
alarv's picture
feat: use openai api
830adc3
|
raw
history blame
920 Bytes
metadata
title: QSARion - A chemical agent to predict molecular properties given a SMILES
emoji: 
colorFrom: pink
colorTo: yellow
python_version: 3.11
sdk: gradio
sdk_version: 5.32.1
app_file: app.py
pinned: false
tags:
  - smolagents
  - agent
  - smolagent
  - tool
  - agent-course

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Environment Setup

Set the following environment variables before running/deploying:

  • OPENAI_API_KEY (required): your OpenAI API key
  • LLM_MODEL_ID (optional): defaults to gpt-4o-mini
  • LLM_API_BASE (optional): defaults to https://api.openai.com/v1
  • LLM_MAX_TOKENS (optional): max assistant output tokens, defaults to 4096
  • LLM_TEMPERATURE (optional): sampling temperature, defaults to 0.3

Tracing (optional, if you use Langfuse as currently configured in app.py):

  • LANGFUSE_PUBLIC_KEY
  • LANGFUSE_SECRET_KEY